<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php         $href = '#';
    $android_href = "http://www.miniyun.cn/index.php?r=app/download&type=android";
    $windows_href = "http://www.miniyun.cn/index.php?r=app/download&type=windows&mime=exe";
    $ios_href     = "http://itunes.apple.com/app/mi-ni-yun/id496835613?mt=8";
    $is_mini = Yii::app()->params['app']['eversion'];
    if($is_mini == 0){
        $href =  "http://www.miniyun.cn/index.php?r=app/download&mid=".Yii::app()->params['app']['mid']."&type=ios";
        $android_href = "http://www.miniyun.cn/index.php?r=app/download&mid=".Yii::app()->params['app']['mid']."&type=android";
        $windows_href = "http://www.miniyun.cn/index.php?r=app/download&mid=".Yii::app()->params['app']['mid']."&type=windows&mime=exe";
        $ios_href     = "http://www.miniyun.cn/index.php?r=app/download&mid=".Yii::app()->params['app']['mid']."&type=ios";
    }
?>
<!--android下载图示框-->
<div id="android_down_pop" class="pop_dir_2" style="visibility:hidden;"> <a class="close" href="#" onclick="javascript:document.getElementById('android_down_pop').style.visibility ='hidden';"></a>
    <h2>android版下载</h2>
  <div class="pop_dir_frame_2">
      <div class="pop_dir_list_2">
        <ul style="height:105px">
          <li>1.二维码下载</li>
        </ul>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>

        <ul style="height:50px">
          <li>2.豌豆荚下载</li>
        </ul>
    
        <ul style="height:40px">
          <li>3.直接下载</li>
        </ul>
<div class="pop_left_2"><a><img width='140px' height='140px' src="<?php if ($is_mini == 1){echo (Yii::app()->params['app']['host']).'/statics/web/images/android_qr.png';} else {echo 'http://www.miniyun.cn/statics/logo/'.Yii::app()->params['app']['mid'].'/android/qr.png';}?>" border="0" /></a></div>
<div class="pop_left_3"><a href="<?php echo $android_href;?>"  onclick="javascript:document.getElementById('android_down_pop').style.visibility ='hidden';return wdapi_apkdl(this);" title="通过豌豆荚一键安装"><img alt="豌豆荚一键安装" src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/images/setup.jpg"  border="0" /></a></div>
<div class="pop_left_4"><a href="<?php echo $android_href;?>"><img title="下载android版" src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/images/dw.jpg"  border="0" /></a></div>
    </div>
 
  </div>
</div>
<!--android下载图示框-->
<!--ios下载图示框-->
<div id="ios_down_pop" class="pop_dir_2" style="visibility:hidden;"> <a class="close" href="#" onclick="javascript:document.getElementById('ios_down_pop').style.visibility ='hidden';"></a>
    <h2>iPhone/iPad版下载</h2>
  <div class="pop_dir_frame_2">
      <div class="pop_dir_list_2">
        <ul style="height:160px">
          <li>1.二维码下载</li>
        </ul>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <ul style="height:50px">
          <li>2.直接下载</li>
        </ul>
<div class="pop_left_2"><a><img width='170px' height='170px' src="<?php if ($is_mini == 1){echo (Yii::app()->params['app']['host']).'/statics/web/images/ios_qr.png';}?>" border="0" /></a></div>
<div class="pop_left_4"><a target="_blank" href="<?php echo $ios_href;?>"><img title="迷你云iPhone/iPad版" src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/images/dw.jpg"  border="0" /></a></div>
    </div>
 
  </div>
</div>
<!--ios下载图示框-->
<!--豌豆荚-->
<script type="text/javascript">
 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 document.write(unescape("%3Cscript src='" + gaJsHost +
      "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script src="http://wandoujia.com/api/wdapi.js" type="text/javascript"></script>
<!--豌豆荚-->